using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;

namespace Thaire.Investment.Repository.Mapping
{

    class LoansInterestDetailMap : ClassMap<LoansInterestDetail>
    {

        public LoansInterestDetailMap()
        {
            Table("LOANS_INTEREST_DETAIL");
            Id(x => x.LoansInterestDetailID, "LOANS_INTEREST_DETAIL_ID").GeneratedBy.Identity();

            Map(x => x.InterestHeaderID, "INTEREST_HEADER_ID");
            Map(x => x.InterestPeriod, "INTEREST_PERIOD");
            Map(x => x.MlrDate, "MLR_DATE");
            Map(x => x.MlrRate, "MLR_RATE");
            Map(x => x.MlrMinus, "MLR_MINUS");
            Map(x => x.InterestRate, "INTEREST_RATE");
            Map(x => x.UpdateInfo, "UPDATE_INFO");
            Map(x => x.Installment, "INSTALLMENT");
            Map(x => x.CreateDate, "CREATE_DATE");
            Map(x => x.CreateBY, "CREATE_BY");
            Map(x => x.ModifyDate, "MODIFY_DATE");
            Map(x => x.ModifyBY, "MODIFY_BY");

        }


    }

}